/**
 * 
 */
package com.taobao.api.model;

/**
 * 调用taobao.items.instock.get搜索当前会话用户（必须为卖家）的库存商品时 需要传入的参数
 * 
 * @author sulinchong.pt
 * 
 */
public class ItemsInStockGetRequest {
	private String fields;
	private String q;
	private Integer pageNo;
	private Integer pageSize;
	private String banner;
	private String orderBy;

	public String getFields() {
		return fields;
	}

	public void setFields(String fields) {
		this.fields = fields;
	}

	public String getQ() {
		return q;
	}

	public void setQ(String q) {
		this.q = q;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	
	public String getBanner() {
		return banner;
	}

	public void setBanner(String banner) {
		this.banner = banner;
	}

	public ItemsInStockGetRequest withFields(String fields) {
		setFields(fields);
		return this;
	}

	public ItemsInStockGetRequest withQ(String q) {
		setQ(q);
		return this;
	}

	public ItemsInStockGetRequest withPageNo(Integer pageNo) {
		setPageNo(pageNo);
		return this;
	}

	public ItemsInStockGetRequest withPageSize(Integer pageSize) {
		setPageSize(pageSize);
		return this;
	}
	
	public ItemsInStockGetRequest withBanner(String banner) {
		setBanner(banner);
		return this;
	}

	public String getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	
	public ItemsInStockGetRequest withOrderBY(String orderBy) {
		setOrderBy(orderBy);
		return this;
	}
}
